/**  
* @Title: IndexCtrl.java 
* @Description:
* @Copyright: Copyright (c) 2018
* @Company:http://www.sinocon.cn
* @author Administrator  
* @date 2018年4月19日  
* @version 1.0  
*/
package com.sansui.feigin.ctrl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sansui.feigin.service.SansuiCoreService;

/**
 * @Title: IndexCtrl
 * @Description:
 * @author:Administrator
 * @date 2018年4月19日
 */
@RestController
public class IndexCtrl extends WebBaseCtrl {
	@Autowired
	private SansuiCoreService sansuiCoreService;

	@RequestMapping("/sansui")
	public Object sansui() {
		return sansuiCoreService.hello();
	}

	@RequestMapping("/login/{username}/{password}")
	public Object login(@PathVariable(value = "username") String username,
			@PathVariable(name = "password") String password) {
		Object login = sansuiCoreService.login(username, password);
		return login;
	}
}
